<div class="col-lg-12 wrapperbox">
	<form class="form-horizontal" role="form" method="POST">	  
		<div class="form-group">
			<label for="" class="col-sm-2 control-label">类型名称</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="fdclassname" placeholder="类型名称">         
			</div>
		</div>
		<!-- 是否启用 -->
		<div class="form-group">
			<label for="" class="col-sm-2 control-label">是否启用</label>
			<div class="col-sm-10">
				<label class="checkbox-inline">
					<input type="checkbox" id="isflag" name="isflag">启用
				</label>
			</div>
		</div>
		<div class="form-group">
			<label for="" class="col-sm-2 control-label">商品种类</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="fdclass" placeholder="商品种类">
			</div>
		</div>
		<div class="form-group">
			<label for="" class="col-sm-2 control-label">排序</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="fdclasssort" placeholder="排序">
			</div>
		</div>
		
		</form> 		
</div>
<script>
	var str = location.hash.split("=")[1];
	$.get("/base/fdclassedit",{str},function(data){
		 $("#fdclassname").val(data.fdclassname) //类型名称
		 if(data.isflag == 1){
			$("#isflag").prop("checked","checked")
		}
		 $("#fdclass").val(data.fdclass) //商品种类
		 $("#fdclasssort").val(data.fdclasssort)	//排序
		
	})
</script>